package com.sc.nft.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;
import com.google.common.collect.Lists;
import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.ArrayList;
import java.util.List;

/**
 * 生态分润类型
 *
 * @Author：LiGen
 * @Package：com.sc.nft.enums
 * @Project：sc_metago
 * @name：EcologyHatchShareProfitMethodConfTypeEnum
 * @Date：2024/7/10 19:10
 * @Filename：EcologyHatchShareProfitMethodConfTypeEnum
 */
@AllArgsConstructor
@Getter
public enum EcologyHatchShareProfitMethodConfTypeEnum {

    FIXED_PROPORTION(1,"固定比例"),

    SMELTER_SMELTER(2,"谁熔炼归谁"),
            ;

    @EnumValue
    private int code;

    private String description;




    /**
     * 仅退款 可以发起售后状态
     *
     * @return
     */
    public static List<EcologyHatchShareProfitMethodConfTypeEnum> all() {
        List<EcologyHatchShareProfitMethodConfTypeEnum> list = Lists.newArrayList();
        list.add(FIXED_PROPORTION);
        list.add(SMELTER_SMELTER);
        return list;
    }
}
